#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void Change(int* arr1, int* arr2) {
	int i = 0;
	for (i = 0; i < 4; i++) {
		int tem = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = tem;
	}
}
int main() {
	int arr1[] = { 1,2,3,4 };
	int arr2[] = { 5,6,7,8 };
	Change(arr1, arr2);
	int i = 0;
	for(i=0;i<4;i++)
	printf("%d ", arr1[i]);
	printf("\n");
	for (i = 0; i < 4; i++)
		printf("%d ", arr2[i]);

}